package com.customer.hystrix.servie;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @Author：Administrator
 * @Date：2022/7/13/0013 20:28
 * @Versiion：1.0
 *
 *
 * 在feign Service 层座服务降级
 */
@Component
@FeignClient(value = "CLOUD-PROVIDER-HYSTRIX-PAYMENT",fallback = HystrixServiceImpl.class)
public interface HystrixService {

    @GetMapping("/paymentOk1")
    String paymentOk1();

    @GetMapping("/paymentTimeout1")
    String paymentTimeout1();

    @GetMapping("/payment/circuit")
    String paymentCircuitBreaker();
}
